package com.sumainfor.pc.epc.controller.provider;

import com.sumainfor.pc.epc.service.SupplierManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * 功能描述:
 *
 * @Auther: zhlu
 * @Date: 2019/7/3 11:57
 * @Description:
 */
@RestController
@RequestMapping("/key/supplier")
public class SupplierController {

    @Autowired
    SupplierManageService SupplierManageService;

    /**
     * 功能描述:
     * 获取所有的供应商列表
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/7/3 11:58
     */
    @GetMapping("/getSupplierList")
    public List<Map<String,Object>> getSupplierList(){
        return SupplierManageService.getSupplierList();
    }

    /**
     * 功能描述:
     * 获取工程部结算单申请打款所有的供应商列表
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/7/3 11:58
     */
    @GetMapping("/getStatementSupplierList")
    public List<Map<String,Object>> getStatementSupplierList(){
        return SupplierManageService.getStatementSupplierList();
    }
}
